<div>
    {if condition="!defined('UM_EDITOR')"}
        <!-- 样式文件 -->
        <link rel="stylesheet" href="__PUBLIC__/plugins/umeditor/themes/default/css/umeditor.css">
        <!-- 配置文件 -->
        <script type="text/javascript" src="__PUBLIC__/plugins/umeditor/umeditor.config.js"></script>
        <!-- 编辑器源码文件 -->
        <script type="text/javascript" src="__PUBLIC__/plugins/umeditor/umeditor.js"></script>
        <!-- 语言包文件 -->
        <script type="text/javascript" src="__PUBLIC__/plugins/umeditor/lang/zh-cn/zh-cn.js"></script>
        {php}define('UM_EDITOR',1);{/php}
    {/if}
    <script id="{$name}" name="{$name}" style="width:{$width};height:{$height};" type="text/plain">{$content|default=""|raw}</script>
    <script type="text/javascript">
    $(function() {
        window.um = UM.getEditor('{$name}', {
            imageUrl: "{:url('file/um')}",
            imagePath: "",
            imageFieldName: "file"
        });
    });
    </script>
</div>